package com.admin.common.enums;


public enum FileZipModelEnum {
    DOWN_LOAD(0, "down_load"),
    COPY(1, "copy");
    private Integer key;
    private String name;

    private FileZipModelEnum() {}

    private FileZipModelEnum(Integer key, String name) {
        this.key = key;
        this.name = name;
    }

    public Integer getKey() {
        return key;
    }


    public String getName() {
        return name;
    }


    public static FileZipModelEnum getEnum(String name) {
        if (name == null) {
            return null;
        }
        for (FileZipModelEnum e : FileZipModelEnum.values()) {
            if (e.getName().equals(name)) {
                return e;
            }
        }
        return null;
    }

}
